{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>日志列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-title">
		<h5>日志列表</h5>
	</div>
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-1 pull-right">
					<div class="input-group">
						<a href="{:url('drop')}" class="btn btn-primary btn-outline ajax-do">清空日志</a>
					</div>
				</div>
			</div>
		</div>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<form method="post" action="{:url('index')}">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th width="50">
									<input type="checkbox" class="check-all">
								</th>
								<th>模块</th>
								<th>链接地址</th>
								<th>用户ID</th>
								<th>IP地址</th>
								<th>操作时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{foreach name="weblog_list" item="vo"}
							<tr>
								<td class="text-center">
									<input type="checkbox" name="ids[]" value="{$vo.id}">
								</td>
								<td>{$vo.module}</td>
								<td class="text-center">{$vo.url}</td>
								<td class="text-center">{$vo.uid}</td>
								<td class="text-center">{$vo.ip}</td>
								<td class="text-center">{$vo.otime}</td>
								<td class="text-center">
									<a data-toggle="collapse" href="#details{$vo.id}" class="btn btn-primary bnt-sm">
										<i class="fa fa-angle-down"></i> 详细</a>&nbsp;&nbsp;
									<a href="{:url('delete',['id'=>$vo.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
								</td>
							</tr>
							<tr id="details{$vo.id}" class="panel-collapse collapse" aria-expanded="true">
								<td colspan="7">
									<div class="ibox-content">
										<div class="form-group">
											<label class="col-sm-4 control-label text-right">操作IP：</label>
											<div class="input-group col-sm-8 text-left">
												{$vo.ip}
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-4 control-label text-right">操作系统：</label>
											<div class="input-group col-sm-8 text-left">
												{$vo.os}
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-4 control-label text-right">操作浏览器：</label>
											<div class="input-group col-sm-8 text-left">
												{$vo.browser}
											</div>
										</div><div class="form-group">
											<label class="col-sm-4 control-label text-right">操作数据：</label>
											<div class="input-group col-sm-8 text-left">
												<pre>{$vo.data|unserialize|var_export}</pre>
											</div>
										</div>
									</div>
								</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
				</form>
				{$weblog_list->render()}
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script>
</script>
{/block}